<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>03-供货商-01店铺首页详情</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-orientation" content="portrait">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Expires" content="-1">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">
    <link href="/css/public.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/css/personal.css" rel="stylesheet" type="text/css" media="all" />
    <script src="/js/jquery-2.1.4.min.js"></script>
</head>
<body class="graybody">
<header class="header">
    <div class="header_left"><a href="/supplies" class="returnico"></a></div>
    <div class="header_center fontcolor"><a href="#">商家详情</a></div>
</header>
<!--全部订单菜单-->
<div class="allddnav">
    <ul>
        <li   class="indexbordercolor cliallddnav fontcolor"><a href="#">店铺首页</a></li>
        <li><a href="/supplies_goods/<?php echo $msg->g_id?>">所有商品</a></li>
        <li><a href="/supplies_active/<?php echo $msg->g_id?>">优惠活动</a></li>
        <li><a href="/supplies_picture/<?php echo $msg->g_id?>">门店相册</a></li>
        <li><a href="/supplies_tell/<?php echo $msg->g_id?>">联系我们</a></li>
    </ul>
</div>
<!--店铺图片-->
<div class="shangjiadianpu">
    <div class="dpshouchang">
        <a href="#" class="jiashouchang">+ 喜欢</a>
    </div>
    <img src="<?php echo $msg->g_logo?>">
    <div class="dianpujs">
        <h2><?php echo $msg->g_name?></h2>
        <span><?php echo $msg->g_jyfw?></span>
    </div>
    <div class="clear"></div>
</div>
<!--店铺信息-->
<div class="dpxinxi">
    <ul>
        <li>
            <span class="dpxx">联系人</span><span class="dpnr"><?php echo $msg->g_user?></span>
        </li>
        <li>
            <span class="dpxx">电&nbsp;&nbsp;&nbsp;&nbsp;话</span><span class="dpnr"><?php echo $msg->g_tel?></span>
        </li>
        <li>
            <span class="dpxx">地&nbsp;&nbsp;&nbsp;&nbsp;址</span><span class="dpnr"><?php echo $msg->g_from?></span>
        </li>
        <li>
            <span class="dpxx">所在区域</span><span class="dpnr"><?php echo $msg->g_qu?></span>
        </li>
        <li>
            <span class="dpxx">经营范围</span><span class="dpnr"><?php echo $msg->g_jyfw?></span>
        </li>
       
    </ul>
</div>
<!--实体展示-->
<div class="shitizhanshi clearafter">
    <h2>实体展示</h2>
    <?php foreach($ms as $key=>$val){ ?>



        
    <ul>
        <li><a href="#"><img src="<?php echo $val->goods_img?>"></a></li>
        
    </ul>
   <?php }?>
</div>

<!--实体店弹窗-->
<div class="shitidianshow">
<?php foreach($ms as $key=>$val){ ?>
    <p><img src="<?php echo $val->goods_img?>"></p>

    <?php }?>
</div>
<script>
    //实体店弹窗
    $(".shitizhanshi li").click(function(e){
        $(".shitidianshow").css("display","table").show();
        e.stopPropagation();
    });
    //关闭
    $(document).click(function(){
        $(".shitidianshow").hide()
    });
    
    //收藏
    $(".jiashouchang").click(function(e) {
        if($(this).hasClass("faved")){
            $(this).removeClass("faved").text(" + 收藏");
        }else{
            $(this).addClass("faved").text("已收藏");
        }
    });
</script>
</body>
</html>